package by.grsu.crs.model;

import java.util.Date;

public class Order {
	private int id;
	private int orderNumber;
	private User client;
	private ICar car;
	private Date orderBegan;
	private Date orderEnded;
	private Status status;
	private String notice;
	
	public Order(int id, int orderNumber, User client, ICar car,
			Date orderBegan, Date orderEnded, Status status, String notice) {
		super();
		this.id = id;
		this.orderNumber = orderNumber;
		this.client = client;
		this.car = car;
		this.orderBegan = orderBegan;
		this.orderEnded = orderEnded;
		this.status = status;
		this.notice = notice;
	}
	
	public Order(int orderNumber, User client, ICar car,
			Date orderBegan, Date orderEnded, Status status, String notice) {
		super();
		this.orderNumber = orderNumber;
		this.client = client;
		this.car = car;
		this.orderBegan = orderBegan;
		this.orderEnded = orderEnded;
		this.status = status;
		this.notice = notice;
	}

	public int getOrderNumber() {
		return orderNumber;
	}

	public void setOrderNumber(int orderNumber) {
		this.orderNumber = orderNumber;
	}

	public User getClient() {
		return client;
	}

	public void setClient(User client) {
		this.client = client;
	}

	public ICar getCar() {
		return car;
	}

	public void setCar(ICar car) {
		this.car = car;
	}

	public Date getOrderBegan() {
		return orderBegan;
	}

	public void setOrderBegan(Date orderBegan) {
		this.orderBegan = orderBegan;
	}

	public Date getOrderEnded() {
		return orderEnded;
	}

	public void setOrderEnded(Date orderEnded) {
		this.orderEnded = orderEnded;
	}

	public Status getStatus() {
		return status;
	}

	public void setStatus(Status status) {
		this.status = status;
	}

	public String getNotice() {
		return notice;
	}

	public void setNotice(String notice) {
		this.notice = notice;
	}

	public int getId() {
		return id;
	}
}
